#pragma once


// COpenFileDialogEx

class COpenFileDialogEx : public CFileDialog
{
	DECLARE_DYNAMIC(COpenFileDialogEx)

public:
	COpenFileDialogEx(CWnd * parent);
	virtual ~COpenFileDialogEx();
protected:
	DECLARE_MESSAGE_MAP()
	virtual void OnFolderChange();
	virtual BOOL OnFileNameOK();
	virtual void OnFileNameChange();
public:
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	virtual BOOL OnNotify(WPARAM wParam, LPARAM lParam, LRESULT* pResult);
	virtual void OnButtonClicked(DWORD dwIDCtl);
	HWND hOle;
	LPOFNHOOKPROC lpfnHook;
	list<wstring> mSelectedItems;
	bool IsRootDisk();
};


